package com.gy.def.dataobject;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Data
@Entity
@DynamicUpdate
@DynamicInsert
@ApiModel(value = "学校课程表")
public class CourseTable {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private String courseId;

  @ApiModelProperty(value = "课程名", example = "操作系统")
  private String courseName;

  @ApiModelProperty(value = "课时", example = "34课时")
  private String courseTime;

  @ApiModelProperty(value = "授课教师", example = "XXX")
  private String courseTeach;

  @ApiModelProperty(value = "课程学分", example = "2")
  private int coursePoint;

  @ApiModelProperty(value = "课程地点", example = "栋教学楼203室")
  private String courseAddress;

  @ApiModelProperty(value = "报名人数", example = "0")
  private int courseCount;

  private int isDelete;

  @JsonIgnore
  private String createTime;
}
